package com.grad.webstudy.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @Description:
 * @Author: zjf
 * @Date: 2020/1/28 10:10.
 */
public class MessageVo {

    private String message;

    private Integer sendId;

    private String sendUserName;

    private String sHeadImagePath; //发送者头像地址

    private Integer receiveId;

    private String receiveUserName;

    private String rHeadImagePath;//接收者头像地址

    @JsonFormat( pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date time;


    @Override
    public String toString() {
        return "MessageVo{" +
                "message='" + message + '\'' +
                ", sendId=" + sendId +
                ", sendUserName='" + sendUserName + '\'' +
                ", sHeadImagePath='" + sHeadImagePath + '\'' +
                ", receiveId=" + receiveId +
                ", receiveUserName='" + receiveUserName + '\'' +
                ", rHeadImagePath='" + rHeadImagePath + '\'' +
                ", time=" + time +
                '}';
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Integer getSendId() {
        return sendId;
    }

    public void setSendId(Integer sendId) {
        this.sendId = sendId;
    }

    public String getSendUserName() {
        return sendUserName;
    }

    public void setSendUserName(String sendUserName) {
        this.sendUserName = sendUserName;
    }

    public String getsHeadImagePath() {
        return sHeadImagePath;
    }

    public void setsHeadImagePath(String sHeadImagePath) {
        this.sHeadImagePath = sHeadImagePath;
    }

    public Integer getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(Integer receiveId) {
        this.receiveId = receiveId;
    }

    public String getReceiveUserName() {
        return receiveUserName;
    }

    public void setReceiveUserName(String receiveUserName) {
        this.receiveUserName = receiveUserName;
    }

    public String getrHeadImagePath() {
        return rHeadImagePath;
    }

    public void setrHeadImagePath(String rHeadImagePath) {
        this.rHeadImagePath = rHeadImagePath;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}
